package org.jeecg.modules.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.shop.entity.Company;
import org.jeecg.modules.shop.entity.Designer;
import org.jeecg.modules.shop.entity.Discount;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 公司表
 * @Author: jeecg-boot
 * @Date:   2023-10-17
 * @Version: V1.0
 */
public interface ICompanyService extends IService<Company> {

	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 添加一对多
	 *
	 * @param Company
	 * @param DesignerList
	 * @param DiscountList
	 */
	public void saveMain(Company Company,List<Designer> DesignerList,List<Discount> DiscountList) ;

	/**
	 * 修改一对多
	 *
	 * @param Company
	 * @param DesignerList
	 * @param DiscountList
	 */
	public void updateMain(Company Company,List<Designer> DesignerList,List<Discount> DiscountList);

	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (Integer id);
}
